/**
 * <p>Copyright:Copyright(c) 2019</p>
 * <p>Company:Professional</p>
 * <p>Package:ces.org.course.web.controller</p>
 * <p>File:DictionaryController.java</p>
 * <p>类更新历史信息</p>
 * @todo chanlong(陈龙) 创建于 May 20, 2019 2:01:47 PM
 */
package ces.org.course.web.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import ces.org.course.api.entity.DictionaryEntity;
import ces.org.course.api.service.DictionaryService;

/**
 * <p>描述: </p>
 * <p>Company: Professional</p>
 * @author chanlong(陈龙)
 * @date May 20, 2019 2:01:47 PM
 * @version 1.0.2019
 */
@RestController @RequestMapping("/dict")
public class DictionaryController {

	@GetMapping()
	public Object all() {
		return service.get(DictionaryEntity.CACHE_KEY);
	}
	
	@Autowired
	private DictionaryService service;
}
